//package com.bosssoft.cloud.wechat.common.bean;
//
//import com.bosssoft.cloud.check.vo.ElectronicInvoice;
//import com.bosssoft.cloud.wechat.infra.util.EStrUtil;
//
//import java.math.BigDecimal;
//import java.text.DecimalFormat;
//
//public class EInvoice {
//    private String pngBase64;
//    private String billcode;
//    private String billNumber;
//    private String randomNumber;
//    private String invoicingPartyName;
//    private String payerPartyName;
//    private String issueDate;
//    private String totalAmount;
//
//    public String getBillcode() {
//        return billcode;
//    }
//
//    public void setBillcode(String billcode) {
//        this.billcode = billcode;
//    }
//
//    public String getBillNumber() {
//        return billNumber;
//    }
//
//    public void setBillNumber(String billNumber) {
//        this.billNumber = billNumber;
//    }
//
//    public String getRandomNumber() {
//        return randomNumber;
//    }
//
//    public void setRandomNumber(String randomNumber) {
//        this.randomNumber = randomNumber;
//    }
//
//    public String getPngBase64() {
//        return pngBase64;
//    }
//
//    public void setPngBase64(String pngBase64) {
//        this.pngBase64 = pngBase64;
//    }
//
//    public String getInvoicingPartyName() {
//        return invoicingPartyName;
//    }
//
//    public void setInvoicingPartyName(String invoicingPartyName) {
//        this.invoicingPartyName = invoicingPartyName;
//    }
//
//    public String getPayerPartyName() {
//        return payerPartyName;
//    }
//
//    public void setPayerPartyName(String payerPartyName) {
//        this.payerPartyName = payerPartyName;
//    }
//
//    public String getIssueDate() {
//        return issueDate;
//    }
//
//    public void setIssueDate(String issueDate) {
//        this.issueDate = issueDate;
//    }
//
//    public String getTotalAmount() {
//        return totalAmount;
//    }
//
//    public void setTotalAmount(String totalAmount) {
//        this.totalAmount = totalAmount;
//    }
//
//    public static EInvoice geteInvoice(ElectronicInvoice electronicInvoice) {
//        EInvoice eInvoice = new EInvoice();
//        eInvoice.setPngBase64(electronicInvoice.getInvoice());
//        eInvoice.setBillcode(electronicInvoice.getEInvoiceCode());
//        eInvoice.setBillNumber(electronicInvoice.getEInvoiceNumber());
//        eInvoice.setRandomNumber(electronicInvoice.getRandomNumber());
//        eInvoice.setInvoicingPartyName(electronicInvoice.getInvoicingPartyName());
//        eInvoice.setIssueDate(electronicInvoice.getIssueDate());
//        eInvoice.setPayerPartyName(electronicInvoice.getPayerPartyName());
//        BigDecimal totalAmount = electronicInvoice.getTotalAmount();
//        String format = new DecimalFormat("####0.00").format(totalAmount);
//        eInvoice.setTotalAmount(format);
//        return eInvoice;
//    }
//
//    @Override
//    public String toString() {
//        return "EInvoice{" +
//                ", billcode='" + billcode + '\'' +
//                ", billNumber='" + billNumber + '\'' +
//                ", randomNumber='" + randomNumber + '\'' +
//                ", invoicingPartyName='" + invoicingPartyName + '\'' +
//                ", payerPartyName='" + payerPartyName + '\'' +
//                ", issueDate='" + issueDate + '\'' +
//                ", totalAmount='" + totalAmount + '\'' +
//                "pngBase64='" + EStrUtil.simpleStr(pngBase64) + '\'' +
//                '}';
//    }
//}
